{% extends "base.html" %}
{% block content %}
            <div id="discussion-topics">
                <h3>Join the discussion</h3>
                <span class="discussion-title">Article: <a href="/article?key={{ article.key }}">{{ article.title }} </a></span>
                <p>
                <div class="discussion-description">{{ article.summary }}</div>
                <br/>
                {% if not nickname %}
                    <p>You must be <a href="{{ loginurl }}">logged in</a> as a <a href="/register">member</a> to add a new post.</p>
                {% else %}
                    <div class="post-link"><a href="/posttopic?article={{ article.key }}">Add new post</a></div>
                {% endif %}<br/>
                {% for topic in topics %}
                <div class="topic-title"><a href="/topic?topic={{ topic.key }}">{{ topic.title }}</a><span class="topic-nickname"> {{ topic.nickname }} </span>  <span class="topic-commentcount">({{ topic.commentcount }} replies)</span></div>
                <p>
                {% endfor %}
                <br/>
            </div>
{% endblock %}